package com.wlanauth.dao.manage;

import org.springframework.dao.DataAccessException;

import com.wlanauth.dao.common.CommonDao;
import com.wlanauth.domain.manage.User;
/**
 * 用户DAO
 * @author zz
 * @date 2012-5-10
 * @email charles.zz.life@gmail.com
 */
public interface UserDao extends CommonDao<User> {
	
	/**
	 * 通过用户名查找
	 * @param username
	 * @return
	 * @throws DataAccessException
	 */
	public User getByUsername(String username) throws DataAccessException;
	
	/**
	 * 通过绑定IP查询
	 * @param username
	 * @return
	 * @throws DataAccessException
	 */
	public User getByBindIP(String bindIP) throws DataAccessException;
	
	
		
}
